package com.tarena.csmall.front.web.repository;

import cn.tedu.mall.pojo.product.vo.SpuDetailStandardVO;
import com.tarena.csmall.front.web.mapper.SpuDetailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class SpuDetailRepositoryImpl implements SpuDetailRepository{
    @Autowired
    private SpuDetailMapper spuDetailMapper;
    @Override public SpuDetailStandardVO getSpuDetail(Long id) {
        //TODO 缓存逻辑
        //spuId是参数
        return spuDetailMapper.selectDetailBySpuId(id);
    }
}
